﻿#ifndef WARINGINFO_H
#define WARINGINFO_H

#include <QWidget>
#include "Global.h"
#include <QFile>

namespace Ui {
class WaringInfo;
}

class WaringInfo : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;
    QSqlQueryModel* errorModel;
    QDataWidgetMapper* eMapper;
    explicit WaringInfo(QWidget *parent = 0);
    ~WaringInfo();
signals:
    void Check_Alert_Details( int DetailEvent);
public slots:
    void onCurrentIndex(int index);

private slots:
    void ErrorDataShow(int current);
    void on_buttonDetail_clicked();
    void on_buttonFirst_clicked();
    void on_buttonPrev_clicked();
    void on_buttonNext_clicked();
    void on_buttonBack_clicked();

private:
    void getErrorInfo();
    void onDataBaseInit();
    void SlotConnect();
    Ui::WaringInfo *ui;
};

#endif // WARINGINFO_H
